/**
  ******************************************************************************
  * @file   ADCx.h  
  * @brief  ADC驱动初始化  
  * @author Moon
  * @version V1.0.0
  * @date 2022/01/10
  ******************************************************************************
  */

#ifndef __ADCX_H
#define __ADCX_H

#include <stdint.h>
#include <stdio.h>
/* Public defines -----------------------------------------------------------*/

/* Public Struct  -----------------------------------------------------------*/


/* Public enum    -----------------------------------------------------------*/
typedef enum
{
	ADC_MCU_TEMP = 0,	      //MCU温度
	ADC_NUM
} ADC_DEVICE_E;

typedef enum
{
	DMA_ADC_MF_MONITOR = 0,				//调制场监测

    DMA_ADC_NUM
} ADC_DMA_DEVICE_E;

/* Public Variable  ---------------------------------------------------------*/
//Pointer

//Array

//Const



/* Pubilc function prototypes -----------------------------------------------*/
void Adc_Init(void);
unsigned short Get_Adc(ADC_DEVICE_E ch);
unsigned short Get_Adc_Average(ADC_DEVICE_E ch,unsigned char times);
void ADCx_SetCallback(ADC_DMA_DEVICE_E index, void (*cb)(int16_t *, uint16_t));

#endif   /*DRV_ADC_H_*/


/******************* (C) COPYRIGHT 2018 CIQTEK Samuel *****END OF FILE****/
